package com.gdwhomework.chapter08.work004;

/**
 * @author 关道伟
 * @version 1.0
 */
public class A {
    private String name = "tom";

    public void fun() {
        class B {
            private final String NAME = "张三";

            public void show() {
                System.out.println("NAME = " + NAME);
                System.out.println("name = " + name);
            }
        }
        B b = new B();
        b.show();
    }
}
